package stream;

import java.util.stream.Stream;

public class parallTest {
    public static void main(String[] args) {
        Stream<Integer> stream = Stream.of(3, 4, 5, 6, 7, 8, 9)
                .parallel()
                .filter(s->{
                    System.out.println(Thread.currentThread()+"----"+s);
                    return s>5;
                });
        stream.count();
    }


}
